/**
 * file
 */
package com.tdkj.action.front.member.financial;

import org.hibernate.Query;

import com.tdkj.action.BaseAction;
import com.tdkj.model.financial.BeanRechargeRecord;
import com.tdkj.model.user.BeanUser;
import com.tdkj.util.Page;

/**

 * FileName:     OnlineRechargeAction.java

 * @Description: TODO在线充值

 * All rights Reserved, Designed By ZTE-ITS

 * Copyright:    Copyright(C) 2010-2011

 * Company       天成科技有限公司

 * @author:    李兴建

 * @version    V1.0 

 * Createdate:         2012-5-27 下午02:14:27

 *

 * Modification  History:

 * Date         Author        Version        Discription

 * -----------------------------------------------------------------------------------

 * 2012-5-27       李兴建          1.0             1.0

 * Why & What is modified: <修改原因描述>

 */
public class RechargeAction extends BaseAction {
	@Override
	public String execute() throws Exception {
		BeanUser currUser = this.getCurrentUser();
		
		String hql = " from " + BeanRechargeRecord.class.getName() + " as bean where bean.user.id='"+currUser.getId()+"' order by bean.dateTime desc";
		Query query = this.createQuery(hql);
		
		Page rechargeRecords = this.getBaseService().findBy(query, 1, 10);
		this.getReturnInfo().put("rechargeRecords", rechargeRecords);
		
		return "success";
	}
	
}
